import request from '@/utils/request'
import { parseStrEmpty } from "@/utils/ruoyi";

// 查询服装发放列表
export function getClothingSendList(data,query) {
  return request({
    url: '/cloth/ClothingSend/list',
    method: 'post',
    params: query,
    data: data,
    isEncrypt: false
  })
}

// 查询服装发放列表--预警
export function getClothingSendWarningList(data,query) {
  return request({
    url: '/cloth/ClothingSend/warningList',
    method: 'post',
    params: query,
    data: data,
    isEncrypt: false
  })
}

// 新增服装装备
export function createClothingSend(data) {
  return request({
    url: '/cloth/ClothingSend/add',
    method: 'post',
    data: data,
    isEncrypt: false
  })
}

// 修改服装装备
export function editClothingSend(data) {
  return request({
    url: '/cloth/ClothingSend/edit',
    method: 'post',
    data: data,
    isEncrypt: false
  })
}

// 删除服装装备
export function deleteClothingSend(jwClothingsendId) {
  return request({
    url: '/cloth/ClothingSend/remove?id=' + jwClothingsendId,
    method: 'post',
    isEncrypt: false
  })
}
